package com.simple.framework.web.mapper;


import com.github.zuihou.base.mapper.SuperMapper;
import com.simple.framework.web.domain.login.AuthUserThird;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

@Repository
public interface AuthUserThirdMapper extends SuperMapper<AuthUserThird> {

    @Update("update auth_user_third set user_id = null " +
            "        where (provider_name = #{providerName} and provider_user_id = #{providerUserId}) or (user_id = #{userId} and provider_name = #{providerName}) " +
            "    ")
    int resetUserId(AuthUserThird authUserThird);
}